package com.example.g5project.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;

/**
 * @author Hu Zirui
 * @version 1.0.0
 * @ClassName Administrator.java
 * @Description TODO
 * @createTime 2022年03月04日 09:07:00
 */
@Entity(name = "administrator")
@ApiModel(value = "administrator")
@Getter
@Setter
@AllArgsConstructor
public class Administrator {
    @Id
    @ApiModelProperty(value = "管理员id", hidden = true)
    @JsonProperty("administrator_id")
    private Integer administrator_id;                   /*管理员id*/
    @JsonProperty("today_all_consult_time")
    private String today_all_consult_time;              /*今日所有咨询师的总咨询时长*/
    @JsonProperty("today_all_finished_consult_time")
    private Integer today_all_finished_consult_time;    /*今日所有咨询师完成的咨询数量*/
    @JsonProperty("name")
    private String name;                                /*姓名*/

    @ApiModelProperty(value = "用户名", required = true)
    @JsonProperty("username")
    @NotEmpty
    private String username;                            /*用户名*/

    @JsonProperty("passward")
    private String passward;                            /*密码*/

    public Administrator() {

    }

    @Override
    public String toString() {
        return "Administrator{" +
                "administrator_id=" + administrator_id +
                ", today_all_consult_time='" + today_all_consult_time + '\'' +
                ", today_all_finished_consult_time=" + today_all_finished_consult_time +
                ", name='" + name + '\'' +
                ", username='" + username + '\'' +
                ", passward='" + passward + '\'' +
                '}';
    }
}
